package org.mch.start;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.ImageIcon;
import javax.swing.JLabel;

import org.mch.swingm.core.MDialog;

public class MCHWelcome extends MDialog {
	private static final long serialVersionUID = -7388546267096947894L;
	private JLabel lblNewLabel;

	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					MCHWelcome dialog = new MCHWelcome();
					dialog.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	public MCHWelcome() {
		super();
		initGUI();
	}

	private void initGUI() {
		setUndecorated(true);
		setResizable(false);
		setBounds(100, 100, 600, 400);
		getContentPane().setLayout(new BorderLayout(0, 0));
		getContentPane().add(getLblNewLabel(), BorderLayout.CENTER);
	}

	public JLabel getLblNewLabel() {
		if (lblNewLabel == null) {
			lblNewLabel = new JLabel("");
			lblNewLabel.setIcon(new ImageIcon(MCHWelcome.class.getResource("/resource/images/welcome.png")));
		}
		return lblNewLabel;
	}
}
